#ifndef SYSTEMCORE_H
#define SYSTEMCORE_H

#include <iostream>
#include <fstream>
#include "dataCore.h"

using namespace std;

typedef struct studentInfo student;
typedef struct instructorInfo instructor;

class SystemUI
{
private:
    int nOpt;
public:
    int instructorMenu ();
    int studentMenu ();
    string askUser ();
};

class SystemControl
{
private:
    int nStu, nIns;
    bool isLoggedIn;
    string currentUser;
    student *stuInfo;
    instructor *insInfo;
    ifstream insInput, stuInput;
    SystemUI UI;
public:
    SystemControl ();
    bool isStudent ( string name );
    bool isInstructor ( string name );
    bool showMenu ();
    void doStudent ();
    void doInstructor ( int opt );
    void doLoadUsers ();
    void doSaveData ();

    void exitProg ();
};

#endif // SYSTEMCORE_H
